package chapter_24_visitor.my;

/**
 * Created by CharloYao on 2017/8/1.
 */
public class Client {
    public static void main(String[] args) {
        ObjectStructure os = new ObjectStructure();
        os.add(new ConcreteElement1());
        os.add(new ConcreteElement2());
        ConcreteVisitor1 v1 = new ConcreteVisitor1();
        ConcreteVisitor2 v2 = new ConcreteVisitor2();

        os.action(v1);
        os.action(v2);
    }
}
